package com.ruoyi.order.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单对象 order_form
 * 
 * @author ruoyi
 * @date 2023-02-09
 */
public class OrderForm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long orderId;

    /** 订单号 */
    @Excel(name = "订单号")
    private Long orderNumber;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderDate;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long uid;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal orderMoney;

    /** 支付状态1已支付2未支付 */
    @Excel(name = "支付状态1已支付2未支付")
    private Long orderState;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setOrderNumber(Long orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public Long getOrderNumber() 
    {
        return orderNumber;
    }
    public void setOrderDate(Date orderDate) 
    {
        this.orderDate = orderDate;
    }

    public Date getOrderDate() 
    {
        return orderDate;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setOrderMoney(BigDecimal orderMoney) 
    {
        this.orderMoney = orderMoney;
    }

    public BigDecimal getOrderMoney() 
    {
        return orderMoney;
    }
    public void setOrderState(Long orderState) 
    {
        this.orderState = orderState;
    }

    public Long getOrderState() 
    {
        return orderState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderNumber", getOrderNumber())
            .append("orderDate", getOrderDate())
            .append("uid", getUid())
            .append("orderMoney", getOrderMoney())
            .append("orderState", getOrderState())
            .toString();
    }
}
